<template>
    <div>
        <p class="header">票夹</p>
        <p class="ticket-list">Hi,有多久没看演出了？</p>
        <button class="ticket-button" @click="handlerClick">去演出逛逛</button>
        <p class="ticket-add" @click="handlerAdd">+</p>

        <router-view></router-view>
    </div>
</template>


<script>
export default {
    methods:{
        handlerClick(){
            this.$router.push('/show')
        },
        handlerAdd(){
            this.$router.push('/ticket/bind-ticket')
        }
    },
    mounted(){
        setTimeout(() => {
            localStorage.removeItem("user")
            
        }, 1000);
    }
}
</script>

<style lang="scss" scoped>
.header{
    font-size: 18px;
    text-align: center;
    height: 2.75rem;
    line-height: 2.75rem;
    border-bottom: 1px solid #e7e7e7;
}
.ticket-list{
    font-size: 18px;
    margin-top: 3.125rem;
    text-align: center;
}
.ticket-button{
    background-color: #7654ff;
    width: 7.5rem;
    height: 2.5rem;
    color: #fff;
    border-radius: 2.3rem;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    margin-left: 5rem;
    margin-top: 1.875rem;
    border: none;
}
.ticket-add{
    position: fixed;
    right: 1rem;
    bottom: 5rem;
    z-index: 99;
    width: 3rem;
    height: 3rem;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 0.4rem 2rem 0 rgb(0 0 0 / 23%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
}
</style>